home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
pascal
/
tpstr.exe
/
TPSTR.DOC
< prev
next >
Wrap
Text File
|
1992-11-09
|
43KB
|
1,621 lines
TPSTR STRING UTILITIES
USER'S GUIDE
T A B L E O F C O N T E N T S
1 - INTRODUCTION .................................. Page 1
- Features ............................ Page 1
- Using TpStr ............................ Page 1
- Licensing ............................ Page 1
- Customer Service ............................ Page 1
2 - GETTING STARTED ............................... Page 2
- Distribution files .......................... Page 2
- Uses clause .......................... Page 2
- Dictionnary .......................... Page 3
3 - REFERENCES ............................... Page 23
This version is 1.00, (c) RAVIART Philippe 1992,All Rights reserved.
1 - INTRODUCTION Page 1
- Features
TpStr provide you really powerfull functions and procedures to
manage strings or chars.
Main advantage of using TpStr is the ultimate speed and the very
large count of procedures and functions.This version 1.00 offers
you 88 functions!.
- Using TpStr
As shareware indicates,you can freely try software for a few
month without charge.
TpStr can be freely use by you for two months.After this delay
you may register for it or put it in the trash! (I don't hope !).
See Licensing for more informations.
- Customer Service
If any problems ,suggestions, comments or questions, you may
contact me with Compuserve,Fax or mail.
a) compuserve: Contact me with my PPN number of 100135,503.
b) fax me at 99-08-97-46 (This number is located in FRANCE so
look for your foreign code numbers.
c) Write to me at:
Mr. RAVIART Philippe
Bourg de TREAL
56140 MALESTROIT
(FRANCE)
In all this cases you should provide me:
a) a descrition of the bug or problem.
b) your machine type and configuration.
c) a copy of your config.sys and autoexec.bat
Anyone who contact me for a bug will immediately receive a new free
version with bug fixed.
- Licensing
As shareware is NOT FREE software you should register for its
commercial or private use.
TpStr package is sold for only $40 until December 1993.
The file REGISTER.TXT permits you to register.
All registered users will received a complete source code for all
the unit present in this package.
2 - GETTING STARTED Page 2
- Distribution files
In this version, TpStr contains:
TPSTR.TPU Compiled with {$N-,E-}
TPNSTR.TPU Compiled with {$N+,E+}
TPSTR.DOC This file.
TPFAST.TPU Very fast routines used by TpStr.
REGISTER.TXT Registration form.
- Uses clause
For your easiness using TpStr your Uses Clause should look like
this:
{$IFOPT N-}
Uses TpStr,
...,
...;
{$ELSE}
Uses TpNStr,
...,
...;
{$ENDIF}
When you use $N+ options, you can deal with Extended,Comp,single
and double type.So you can find functions using these types into
TpNStr but NOT in TpStr (limited to standard real type).
- Dictionnary Page 3
---------------------------------------------------------------
function StrL (L: Longint) :String;
---------------------------------------------------------------
Purpose : Convert a LongInt to a string.
Example : S := StrL(MaxLongInt);
Result : S = '2147483647'
Rating : 4560/s
---------------------------------------------------------------
function StrLF (L: Longint;Field: Integer) :String;
---------------------------------------------------------------
Purpose : Convert a LongInt to a string.
Example : S1 := StrLF(MaxLongInt,5);
S2 := StrLF(1,5);
Result : S1 = '2147483647'
S2 = ' 1'
Rating : 6760/s
---------------------------------------------------------------
function StrR (R: Real) :String;
---------------------------------------------------------------
Purpose : Convert a Real to a string.
Example : S1 := StrR(Pi);
S2 := StrR(1);
Result : S1 = ' 3.1415926536E+00';
S2 := ' 1.00000000000000E+0000'
Rating : 860/s
---------------------------------------------------------------
function StrRF (R: Real;Field: Integer) :String;
---------------------------------------------------------------
Purpose : Convert a Real to a string.
Example : S1 := StrRF(Pi,1);
S2 := StrRF(1,5);
Result : S1 = ' 3.1E+00';
S2 = ' 1.0E+0000';
Rating : 920/s
Page 4
---------------------------------------------------------------
function StrRFD(R: Real;Field,Decimals: Integer) :String;
---------------------------------------------------------------
Purpose : Convert a Real to a string.
Example : S1 := StrRFD(Pi,4,2);
S2 := StrRFD(1,4,2);
Result : S1 = '3.14'
S2 = '1.00'
Rating : 919/s
-------------------------------
{$IFOPT N+}
-------------------------------
This Part is include only if option $N is +.
---------------------------------------------------------------
function StrC (C: Comp) :String;
---------------------------------------------------------------
Purpose : Convert a 64-Bit integer to a string.
Example : S1 := StrC(9.2e18);
S2 := StrC(1);
Result : S1 = ' 9.20000000000000E+0018'
S2 = ' 1.00000000000000E+0000'
Rating : 932/s
---------------------------------------------------------------
function StrCF (C: Comp;Field: Integer) :String;
---------------------------------------------------------------
Purpose : Convert a 64-Bit integer to a string.
Example : S1 := StrCF(9.2e18,10);
S2 := StrCF(1,5);
Result : S1 = ' 9.2E+0018'
S2 = ' 1.0E+0000'
Rating : 1004/s
---------------------------------------------------------------
function StrCFD(C: Comp;Field,Decimals: Integer) :String;
---------------------------------------------------------------
Purpose : Convert a 64-Bit integer to a string.
Example : S1 := StrCFD(9.2e18,10,5);
S2 := StrCFD(9,5,2);
Result : S1 = '9200000000000000000.00000'
S2 = ' 9.00'
Rating : 951/s
Page 5
---------------------------------------------------------------
function StrD (D: Double) :String;
---------------------------------------------------------------
Purpose : Convert a double to a string.
Example : S1 := StrD(1.7e308);
S2 := StrD(1);
Result : S1 = ' 1.70000000000000E+0038'
S2 = ' 1.00000000000000E+0000'
Rating : 784/s
---------------------------------------------------------------
function StrDF (D: Double;Field: Integer) :String;
---------------------------------------------------------------
Purpose : Convert a double to a string.
Example : S1 := StrDF(1.7e308,10);
S2 := StrDF(1,5);
Result : S1 = ' 7.7E+0307'
S2 = ' 1.0E+0000'
Rating : 847/s
---------------------------------------------------